﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace csharp_movies_415.Data.Models
{
    public class Actor
    {
        public int ActorId { get; set; } // PK
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public int OscarAmount { get; set; }
        public int NumSurgeries { get; set; }
        public int MovieId { get; set; } // Foreign Key (FK) for the Movie Class (Actors are assigned to a movie)
        public virtual Movie Movie { get; set; } // Tells Entity Framework (EF) that MovieId is the FK
    }
}
